package com.sys.mapper;

import com.sys.model.Student;

import java.util.List;
import java.util.Map;

public interface StudentMapper {

    /*删除学生信息*/
    int deleteByPrimaryKey(Integer id);

    int insert(Student record);

    /*添加学生信息*/
    int insertSelective(Student record);

    /*根据 id 查询学生信息*/
    Student selectByPrimaryKey(Integer id);

    /*修改学生信息*/
    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    /*查询全部学生信息*/
    List<Student> getStudentList(Map requestparamMap);

    /*根据idcard 查询学生信息*/
    Student getStudentByIdcard(int idcard);

    List<Student> getStudentByZid(int zid);

    List<Student> getStudentByCid(int cid);

    /*查询最后一条学生信息 账号*/
    Student getStudentByLast();
}